package com.antcom.antread.common.log.service;

import com.antcom.antread.api.domain.OperationLog;
import com.antcom.antread.api.service.RemoteLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * 异步调用日志服务
 *
 * @Author 中国蚂蚁技术有限公司
 * @create 2020/12/27 19:53
 */
@Service
public class AsyncLogService {

    @Autowired
    private RemoteLogService remoteLogService;

    @Async
    public void saveLog(OperationLog operationLog){
        remoteLogService.saveLog(operationLog);
    }

}
